Optimal. Leaf size=92 \[ \frac {(a+b)^2 \cosh (c+d x)}{d}-\frac {4 b (a+b) \cosh ^3(c+d x)}{3 d}+\frac {2 b (a+3 b) \cosh ^5(c+d x)}{5 d}-\frac {4 b^2 \cosh ^7(c+d x)}{7 d}+\frac {b^2 \cosh ^9(c+d x)}{9 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 92, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {3294, 1104}
\begin {gather*} \frac {2 b (a+3 b) \cosh ^5(c+d x)}{5 d}-\frac {4 b (a+b) \cosh ^3(c+d x)}{3 d}+\frac {(a+b)^2 \cosh (c+d x)}{d}+\frac {b^2 \cosh ^9(c+d x)}{9 d}-\frac {4 b^2 \cosh ^7(c+d x)}{7 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 1104
Rule 3294
Rubi steps
\begin {align*} \int \sinh (c+d x) \left (a+b \sinh ^4(c+d x)\right )^2 \, dx &=\frac {\text {Subst}\left (\int \left (a+b-2 b x^2+b x^4\right )^2 \, dx,x,\cosh (c+d x)\right )}{d}\\ &=\frac {\text {Subst}\left (\int \left (a^2 \left (1+\frac {b (2 a+b)}{a^2}\right )-4 a b \left (1+\frac {b}{a}\right ) x^2+2 a b \left (1+\frac {3 b}{a}\right ) x^4-4 b^2 x^6+b^2 x^8\right ) \, dx,x,\cosh (c+d x)\right )}{d}\\ &=\frac {(a+b)^2 \cosh (c+d x)}{d}-\frac {4 b (a+b) \cosh ^3(c+d x)}{3 d}+\frac {2 b (a+3 b) \cosh ^5(c+d x)}{5 d}-\frac {4 b^2 \cosh ^7(c+d x)}{7 d}+\frac {b^2 \cosh ^9(c+d x)}{9 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 164, normalized size = 1.78 \begin {gather*} \frac {a^2 \cosh (c) \cosh (d x)}{d}+\frac {5 a b \cosh (c+d x)}{4 d}+\frac {63 b^2 \cosh (c+d x)}{128 d}-\frac {5 a b \cosh (3 (c+d x))}{24 d}-\frac {7 b^2 \cosh (3 (c+d x))}{64 d}+\frac {a b \cosh (5 (c+d x))}{40 d}+\frac {9 b^2 \cosh (5 (c+d x))}{320 d}-\frac {9 b^2 \cosh (7 (c+d x))}{1792 d}+\frac {b^2 \cosh (9 (c+d x))}{2304 d}+\frac {a^2 \sinh (c) \sinh (d x)}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.78, size = 107, normalized size = 1.16
method | result | size |
default | \(\frac {\left (-\frac {21}{64} b^{2}-\frac {5}{8} a b \right ) \cosh \left (3 d x +3 c \right )}{3 d}+\frac {\left (\frac {9}{64} b^{2}+\frac {1}{8} a b \right ) \cosh \left (5 d x +5 c \right )}{5 d}+\frac {\left (\frac {63}{128} b^{2}+\frac {5}{4} a b +a^{2}\right ) \cosh \left (d x +c \right )}{d}-\frac {9 b^{2} \cosh \left (7 d x +7 c \right )}{1792 d}+\frac {b^{2} \cosh \left (9 d x +9 c \right )}{2304 d}\) | \(107\) |
risch | \(\frac {b^{2} {\mathrm e}^{9 d x +9 c}}{4608 d}-\frac {9 b^{2} {\mathrm e}^{7 d x +7 c}}{3584 d}+\frac {9 b^{2} {\mathrm e}^{5 d x +5 c}}{640 d}+\frac {b \,{\mathrm e}^{5 d x +5 c} a}{80 d}-\frac {7 \,{\mathrm e}^{3 d x +3 c} b^{2}}{128 d}-\frac {5 \,{\mathrm e}^{3 d x +3 c} a b}{48 d}+\frac {{\mathrm e}^{d x +c} a^{2}}{2 d}+\frac {5 a b \,{\mathrm e}^{d x +c}}{8 d}+\frac {63 \,{\mathrm e}^{d x +c} b^{2}}{256 d}+\frac {{\mathrm e}^{-d x -c} a^{2}}{2 d}+\frac {5 \,{\mathrm e}^{-d x -c} a b}{8 d}+\frac {63 \,{\mathrm e}^{-d x -c} b^{2}}{256 d}-\frac {7 \,{\mathrm e}^{-3 d x -3 c} b^{2}}{128 d}-\frac {5 \,{\mathrm e}^{-3 d x -3 c} a b}{48 d}+\frac {9 b^{2} {\mathrm e}^{-5 d x -5 c}}{640 d}+\frac {b \,{\mathrm e}^{-5 d x -5 c} a}{80 d}-\frac {9 b^{2} {\mathrm e}^{-7 d x -7 c}}{3584 d}+\frac {b^{2} {\mathrm e}^{-9 d x -9 c}}{4608 d}\) | \(293\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 226 vs.
\(2 (84) = 168\).
time = 0.27, size = 226, normalized size = 2.46 \begin {gather*} -\frac {1}{161280} \, b^{2} {\left (\frac {{\left (405 \, e^{\left (-2 \, d x - 2 \, c\right )} - 2268 \, e^{\left (-4 \, d x - 4 \, c\right )} + 8820 \, e^{\left (-6 \, d x - 6 \, c\right )} - 39690 \, e^{\left (-8 \, d x - 8 \, c\right )} - 35\right )} e^{\left (9 \, d x + 9 \, c\right )}}{d} - \frac {39690 \, e^{\left (-d x - c\right )} - 8820 \, e^{\left (-3 \, d x - 3 \, c\right )} + 2268 \, e^{\left (-5 \, d x - 5 \, c\right )} - 405 \, e^{\left (-7 \, d x - 7 \, c\right )} + 35 \, e^{\left (-9 \, d x - 9 \, c\right )}}{d}\right )} + \frac {1}{240} \, a b {\left (\frac {3 \, e^{\left (5 \, d x + 5 \, c\right )}}{d} - \frac {25 \, e^{\left (3 \, d x + 3 \, c\right )}}{d} + \frac {150 \, e^{\left (d x + c\right )}}{d} + \frac {150 \, e^{\left (-d x - c\right )}}{d} - \frac {25 \, e^{\left (-3 \, d x - 3 \, c\right )}}{d} + \frac {3 \, e^{\left (-5 \, d x - 5 \, c\right )}}{d}\right )} + \frac {a^{2} \cosh \left (d x + c\right )}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 279 vs.
\(2 (84) = 168\).
time = 0.41, size = 279, normalized size = 3.03 \begin {gather*} \frac {35 \, b^{2} \cosh \left (d x + c\right )^{9} + 315 \, b^{2} \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{8} - 405 \, b^{2} \cosh \left (d x + c\right )^{7} + 105 \, {\left (28 \, b^{2} \cosh \left (d x + c\right )^{3} - 27 \, b^{2} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{6} + 252 \, {\left (8 \, a b + 9 \, b^{2}\right )} \cosh \left (d x + c\right )^{5} + 315 \, {\left (14 \, b^{2} \cosh \left (d x + c\right )^{5} - 45 \, b^{2} \cosh \left (d x + c\right )^{3} + 4 \, {\left (8 \, a b + 9 \, b^{2}\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{4} - 420 \, {\left (40 \, a b + 21 \, b^{2}\right )} \cosh \left (d x + c\right )^{3} + 315 \, {\left (4 \, b^{2} \cosh \left (d x + c\right )^{7} - 27 \, b^{2} \cosh \left (d x + c\right )^{5} + 8 \, {\left (8 \, a b + 9 \, b^{2}\right )} \cosh \left (d x + c\right )^{3} - 4 \, {\left (40 \, a b + 21 \, b^{2}\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{2} + 630 \, {\left (128 \, a^{2} + 160 \, a b + 63 \, b^{2}\right )} \cosh \left (d x + c\right )}{80640 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 204 vs.
\(2 (83) = 166\).
time = 1.54, size = 204, normalized size = 2.22 \begin {gather*} \begin {cases} \frac {a^{2} \cosh {\left (c + d x \right )}}{d} + \frac {2 a b \sinh ^{4}{\left (c + d x \right )} \cosh {\left (c + d x \right )}}{d} - \frac {8 a b \sinh ^{2}{\left (c + d x \right )} \cosh ^{3}{\left (c + d x \right )}}{3 d} + \frac {16 a b \cosh ^{5}{\left (c + d x \right )}}{15 d} + \frac {b^{2} \sinh ^{8}{\left (c + d x \right )} \cosh {\left (c + d x \right )}}{d} - \frac {8 b^{2} \sinh ^{6}{\left (c + d x \right )} \cosh ^{3}{\left (c + d x \right )}}{3 d} + \frac {16 b^{2} \sinh ^{4}{\left (c + d x \right )} \cosh ^{5}{\left (c + d x \right )}}{5 d} - \frac {64 b^{2} \sinh ^{2}{\left (c + d x \right )} \cosh ^{7}{\left (c + d x \right )}}{35 d} + \frac {128 b^{2} \cosh ^{9}{\left (c + d x \right )}}{315 d} & \text {for}\: d \neq 0 \\x \left (a + b \sinh ^{4}{\left (c \right )}\right )^{2} \sinh {\left (c \right )} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 220 vs.
\(2 (84) = 168\).
time = 0.48, size = 220, normalized size = 2.39 \begin {gather*} \frac {b^{2} e^{\left (9 \, d x + 9 \, c\right )}}{4608 \, d} - \frac {9 \, b^{2} e^{\left (7 \, d x + 7 \, c\right )}}{3584 \, d} - \frac {9 \, b^{2} e^{\left (-7 \, d x - 7 \, c\right )}}{3584 \, d} + \frac {b^{2} e^{\left (-9 \, d x - 9 \, c\right )}}{4608 \, d} + \frac {{\left (8 \, a b + 9 \, b^{2}\right )} e^{\left (5 \, d x + 5 \, c\right )}}{640 \, d} - \frac {{\left (40 \, a b + 21 \, b^{2}\right )} e^{\left (3 \, d x + 3 \, c\right )}}{384 \, d} + \frac {{\left (128 \, a^{2} + 160 \, a b + 63 \, b^{2}\right )} e^{\left (d x + c\right )}}{256 \, d} + \frac {{\left (128 \, a^{2} + 160 \, a b + 63 \, b^{2}\right )} e^{\left (-d x - c\right )}}{256 \, d} - \frac {{\left (40 \, a b + 21 \, b^{2}\right )} e^{\left (-3 \, d x - 3 \, c\right )}}{384 \, d} + \frac {{\left (8 \, a b + 9 \, b^{2}\right )} e^{\left (-5 \, d x - 5 \, c\right )}}{640 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.88, size = 111, normalized size = 1.21 \begin {gather*} \frac {a^2\,\mathrm {cosh}\left (c+d\,x\right )+\frac {2\,a\,b\,{\mathrm {cosh}\left (c+d\,x\right )}^5}{5}-\frac {4\,a\,b\,{\mathrm {cosh}\left (c+d\,x\right )}^3}{3}+2\,a\,b\,\mathrm {cosh}\left (c+d\,x\right )+\frac {b^2\,{\mathrm {cosh}\left (c+d\,x\right )}^9}{9}-\frac {4\,b^2\,{\mathrm {cosh}\left (c+d\,x\right )}^7}{7}+\frac {6\,b^2\,{\mathrm {cosh}\left (c+d\,x\right )}^5}{5}-\frac {4\,b^2\,{\mathrm {cosh}\left (c+d\,x\right )}^3}{3}+b^2\,\mathrm {cosh}\left (c+d\,x\right )}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________